<html>
<head>
<link rel='stylesheet' href='../../js/sh/SyntaxHighlighter.css' type='text/css' />
<script src='../../js/sh/shCore.js'></script>
<script src='../../js/sh/shBrushJava.js'></script>
<style>
* {
font-family:Courier New,monospace;
  padding: 0;
  margin: 0;
  white-space: nowrap;
  font-size: 11px;
}
.dp-highlighter {
  white-space: nowrap;
  overflow: visible;
  width: 600px;
  font-size: 11px;
  font-family:Courier New,monospace;
}
</style>
</head>
<body>
<textarea name='code' class='java:nogutter' rows='15' cols='120'>
package com.smartgwt.sample.showcase.client.data;

public class PartData {

    private static PartRecord[] records;

    public static PartRecord[] getRecords() {
        if (records == null) {
            records = getNewRecords();
        }
        return records;
    }

    public static PartRecord[] getNewRecords() {
        return new PartRecord[]{
                new PartRecord("Blue", "cube_blue.png", 1),
                new PartRecord("Yellow", "cube_yellow.png", 2),
                new PartRecord("Green", "cube_green.png", 3),
                new PartRecord("Blue", "cube_blue.png", 4),
                new PartRecord("Yellow", "cube_yellow.png", 5),
                new PartRecord("Green", "cube_green.png", 6),
                new PartRecord("Blue", "cube_blue.png", 7),
                new PartRecord("Yellow", "cube_yellow.png", 8),
                new PartRecord("Green", "cube_green.png", 9),
        };
    }
}
</textarea>
<script class='javascript'>
dp.SyntaxHighlighter.HighlightAll("code");
</script>
</body>
</html>
